package org.streets.workflow.engine.event;

import java.util.EventObject;

import org.streets.workflow.engine.IEdge;
import org.streets.workflow.engine.IToken;


/**
 * edge监听器
 *
 * @author chennieyun
 */
@SuppressWarnings("serial")
public class EdgeEvent extends EventObject {

    public static final int ON_TAKING_THE_TOKEN = 1;
    int eventType = -1;
    private IToken token = null;

	private EdgeEvent() {
        super(null);
    }

    public EdgeEvent(IEdge source) {
        super(source);
    }

    public IToken getToken() {
        return token;
    }

    public void setToken(IToken tk) {
        this.token = tk;
    }

    public int getEventType() {
        return eventType;
    }

    public void setEventType(int eventType) {
        this.eventType = eventType;
    }
}
